package homework.test2;

import java.io.*;

public class Demo3 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day13\\src\\homework\\test2\\a.txt"));

        bw.write("1 2 3");
        bw.write("\r\n");
        bw.write("4 5 6");
        bw.write("\r\n");

        bw.close();

        BufferedReader br = new BufferedReader(new FileReader("Day13\\src\\homework\\test2\\a.txt"));

        String s;
        while ((s = br.readLine()) != null){
            System.out.println(s);
        }
    }
}
